/*
 * Copyright (c)  2015~2020, xforceplus
 * All rights reserved.
 * Project:datacare-orm
 * Id: DeleteSqlManager.java   2020-10-10 23-46-55
 * Author: Evan
 */
package cn.datacare.orm.manager;

/**
 * <p>
 * Title: 删除接口定义
 * </p>
 * <p>
 * Description: 删除接口定义
 * </p>
 * <p>
 * Copyright: 2015~2020
 * </p>
 * <p>
 * Company/Department: xforceplus
 * </p>
 *
 * @author Evan
 * <b>Creation Time:</b> 2020-10-10 23-46-55
 * @since V1.0
 */
public interface DeleteSqlManager {
    /**
     * delete from user where 1=1 and id= #id#
     * <p>
     * 根据Id删除数据：支持联合主键
     *
     * @param clazz
     * @param pkValue
     * @return
     */
    int deleteById(Class<?> clazz, Object pkValue);

    /**
     * 删除对象, 通过对象的主键
     *
     * @param obj 对象,必须包含了主键，实际上根据主键来删除
     * @return
     */
    int deleteObject(Object obj);
}
